export enum OS {
  Win = "Windows",
  Mac = "Mac OS",
  Linux = "linux",
  Android = "Android",
  IOS = "iOS",
}

export type MatcherForPicker = (val: string) => boolean;

export interface UARule {
  os: OS;
  versionForClient?: string;
  displayedVersion?: string;
  versionForUA: {
    values: string[];
    picker?: (values: string[]) => string;
  };
  webkit: {
    values: string[];
    picker?: (values: string[]) => string;
  };
  browser: {
    values: string[];
    picker?: (values: string[], reg: RegExp | MatcherForPicker) => string;
  };
  safari: {
    values: string[];
    picker?: (values: string[], reg: RegExp | MatcherForPicker) => string;
  };
}
